package com.example.demo.pojo.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.URL;

import java.util.List;

@Getter
@Setter
@ToString
public class UpdateItemImagesDTO {
    private Long id;

    @NotNull(message = "图片列表不能为空")
    private List<@URL String> images; //图片url列表

    public UpdateItemImagesDTO() {
    }

    public UpdateItemImagesDTO(Long id, List<String> images) {
        this.id = id;
        this.images = images;
    }
}
